.class public Lcom/estrongs/android/ui/view/d;
.super Ljava/lang/Object;
.source "ESToast.java"


# static fields
.field private static a:Landroid/widget/Toast;


# direct methods
.method public static a()V
    .locals 1

    .line 10
    :try_start_0
    sget-object v0, Lcom/estrongs/android/ui/view/d;->a:Landroid/widget/Toast;

    if-eqz v0, :cond_0

    .line 11
    sget-object v0, Lcom/estrongs/android/ui/view/d;->a:Landroid/widget/Toast;

    invoke-virtual {v0}, Landroid/widget/Toast;->cancel()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    :cond_0
    return-void
.end method

.method public static a(I)V
    .locals 2

    .line 8
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    const/4 v1, 0x1

    invoke-static {v0, p0, v1}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    return-void
.end method

.method public static a(Landroid/content/Context;II)V
    .locals 1

    .line 1
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/app/Application;->getText(I)Ljava/lang/CharSequence;

    move-result-object p1

    invoke-static {p0, p1, p2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/CharSequence;I)V
    .locals 2

    .line 2
    :try_start_0
    sget-object p0, Lcom/estrongs/android/ui/view/d;->a:Landroid/widget/Toast;

    if-nez p0, :cond_0

    .line 3
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p0

    const-string v0, ""

    const/4 v1, 0x0

    invoke-static {p0, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object p0

    sput-object p0, Lcom/estrongs/android/ui/view/d;->a:Landroid/widget/Toast;

    .line 4
    :cond_0
    sget-object p0, Lcom/estrongs/android/ui/view/d;->a:Landroid/widget/Toast;

    invoke-virtual {p0, p1}, Landroid/widget/Toast;->setText(Ljava/lang/CharSequence;)V

    .line 5
    sget-object p0, Lcom/estrongs/android/ui/view/d;->a:Landroid/widget/Toast;

    invoke-virtual {p0, p2}, Landroid/widget/Toast;->setDuration(I)V

    .line 6
    sget-object p0, Lcom/estrongs/android/ui/view/d;->a:Landroid/widget/Toast;

    invoke-virtual {p0}, Landroid/widget/Toast;->show()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method public static a(Ljava/lang/CharSequence;)V
    .locals 2

    .line 9
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    const/4 v1, 0x1

    invoke-static {v0, p0, v1}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    return-void
.end method

.method public static a(Ljava/lang/CharSequence;I)V
    .locals 1

    .line 7
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-static {v0, p0, p1}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    return-void
.end method
